package com.atguigu.mySmartCampus.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

@Configuration
//@MapperScan("com.atguigu.mySmartCampus")   不加.mapper结尾会气死人
@MapperScan("com.atguigu.mySmartCampus.mapper")
public class Myconf {


    public PaginationInterceptor getPaginationInterceptor() {
        return new PaginationInterceptor();
    }
}
